#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n,i;
    double sum=100,m=100;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
        sum=sum+m*2;        m=m/2;
    }
    sum=sum-200;
    printf("%.3lf %.3lf\n",sum,m);
    return 0;
}
